<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    body{
        width: 100%;
        height: 100vh;
        background-color: #16161A;
    }
    .content{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        height: 500px;
    }
    .content img{
        width: 238px;
        height: 138px;
        border-radius: 10px;
    }
    .content .item{
        position: relative;
    }
    .content .items{
        position: absolute;
        left: 0;
        top: 0;
    }
    .content .item .items{
        opacity: 0;
        transition: all .5s;
        background-color: #25252B;
    }
    .content .item .items .text{
        margin: 10px;
        color:white;
    }
    .content .item .items .text b{
        font-size: 12px;
        display: block;
    }
    .content .item .items .text span{
        display: -webkit-box;
        font-size: 10px;
        color:#999999;
        text-overflow: ellipsis;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-all;
    }
    .content .item:hover .items{
        opacity: 1;
        transform: scale(1.8);
        z-index: 99;
        border-radius: 5px;
        overflow: hidden;
    }
    .content .before{
        transform-origin:left;
    }
    .content .last{
        transform-origin:right;
    }
</style>
<body>
    <div class="content">
        <div class="item">
            <img src="http://m.ykimg.com/05830000667CC7977B50C00CBD3AC3A0?x-oss-process=image/resize,w_640/crop,x_0,y_0,w_640,h_360">
            <div class="items before">
                <video muted="true" src="https://www.pasanhu.cn/files/1703835308988-fd0327824614415aa946e45504a1b61f.mp4" style="width: 100%;
                height: 100%; object-fit: cover;"></video>
                <div class="text">
                    <b>执行法官</b><br />
                    <span title="请见分段反对哈fsadfasfsdafsafsafd苏fdsahfioshadfoiuhioasfho覅大赛防护服第卅功夫i夫i但撒谎覅u返回撒旦回复i回复i的撒回复i撒核辐射嗲花覅u">请见分段反对哈fsadfasfsdafsafsafd苏fdsahfioshadfoiuhioasfho覅大赛防护服第卅功夫i夫i但撒谎覅u返回撒旦回复i回复i的撒回复i撒核辐射嗲花覅u </span>
                </div>
            </div>
        </div>
        <div class="item">
            <img src="http://m.ykimg.com/05830000667CC7977B50C00CBD3AC3A0?x-oss-process=image/resize,w_640/crop,x_0,y_0,w_640,h_360">
            <div class="items">
                <video muted="true" src="https://www.pasanhu.cn/files/1703835308988-fd0327824614415aa946e45504a1b61f.mp4" style="width: 100%;
                height: 100%; object-fit: cover;"></video>
                <div class="text">
                    <b>执行法官</b><br />
                    <span title="请见分段反对哈fsadfasfsdafsafsafd苏fdsahfioshadfoiuhioasfho覅大赛防护服第卅功夫i夫i但撒谎覅u返回撒旦回复i回复i的撒回复i撒核辐射嗲花覅u">请见分段反对哈fsadfasfsdafsafsafd苏fdsahfioshadfoiuhioasfho覅大赛防护服第卅功夫i夫i但撒谎覅u返回撒旦回复i回复i的撒回复i撒核辐射嗲花覅u </span>
                </div>
            </div>
        </div>
        <div class="item">
            <img src="http://m.ykimg.com/05830000667CC7977B50C00CBD3AC3A0?x-oss-process=image/resize,w_640/crop,x_0,y_0,w_640,h_360">
            <div class="items">
                <video muted="true" src="https://www.pasanhu.cn/files/1703835308988-fd0327824614415aa946e45504a1b61f.mp4" style="width: 100%;
                height: 100%; object-fit: cover;"></video>
                <div class="text">
                    <b>执行法官</b><br />
                    <span title="请见分段反对哈fsadfasfsdafsafsafd苏fdsahfioshadfoiuhioasfho覅大赛防护服第卅功夫i夫i但撒谎覅u返回撒旦回复i回复i的撒回复i撒核辐射嗲花覅u">请见分段反对哈fsadfasfsdafsafsafd苏fdsahfioshadfoiuhioasfho覅大赛防护服第卅功夫i夫i但撒谎覅u返回撒旦回复i回复i的撒回复i撒核辐射嗲花覅u </span>
                </div>
            </div>
        </div>
        <div class="item">
            <img src="http://m.ykimg.com/05830000667CC7977B50C00CBD3AC3A0?x-oss-process=image/resize,w_640/crop,x_0,y_0,w_640,h_360">
            <div class="items">
                <video muted="true" src="https://www.pasanhu.cn/files/1703835308988-fd0327824614415aa946e45504a1b61f.mp4" style="width: 100%;
                height: 100%; object-fit: cover;"></video>
                <div class="text">
                    <b>执行法官</b><br />
                    <span title="请见分段反对哈fsadfasfsdafsafsafd苏fdsahfioshadfoiuhioasfho覅大赛防护服第卅功夫i夫i但撒谎覅u返回撒旦回复i回复i的撒回复i撒核辐射嗲花覅u">请见分段反对哈fsadfasfsdafsafsafd苏fdsahfioshadfoiuhioasfho覅大赛防护服第卅功夫i夫i但撒谎覅u返回撒旦回复i回复i的撒回复i撒核辐射嗲花覅u </span>
                </div>
            </div>
        </div>
        <div class="item">
            <img src="http://m.ykimg.com/05830000667CC7977B50C00CBD3AC3A0?x-oss-process=image/resize,w_640/crop,x_0,y_0,w_640,h_360">
            <div class="items">
                <video muted="true" src="https://www.pasanhu.cn/files/1703835308988-fd0327824614415aa946e45504a1b61f.mp4" style="width: 100%;
                height: 100%; object-fit: cover;"></video>
                <div class="text">
                    <b>执行法官</b><br />
                    <span title="请见分段反对哈fsadfasfsdafsafsafd苏fdsahfioshadfoiuhioasfho覅大赛防护服第卅功夫i夫i但撒谎覅u返回撒旦回复i回复i的撒回复i撒核辐射嗲花覅u">请见分段反对哈fsadfasfsdafsafsafd苏fdsahfioshadfoiuhioasfho覅大赛防护服第卅功夫i夫i但撒谎覅u返回撒旦回复i回复i的撒回复i撒核辐射嗲花覅u </span>
                </div>
            </div>
        </div>
        <div class="item">
            <img src="http://m.ykimg.com/05830000667CC7977B50C00CBD3AC3A0?x-oss-process=image/resize,w_640/crop,x_0,y_0,w_640,h_360">
            <div class="items last">
                <video muted="true" src="https://www.pasanhu.cn/files/1703835308988-fd0327824614415aa946e45504a1b61f.mp4" style="width: 100%;
                height: 100%; object-fit: cover;"></video>
                <div class="text">
                    <b>执行法官</b><br />
                    <span title="请见分段反对哈fsadfasfsdafsafsafd苏fdsahfioshadfoiuhioasfho覅大赛防护服第卅功夫i夫i但撒谎覅u返回撒旦回复i回复i的撒回复i撒核辐射嗲花覅u">请见分段反对哈fsadfasfsdafsafsafd苏fdsahfioshadfoiuhioasfho覅大赛防护服第卅功夫i夫i但撒谎覅u返回撒旦回复i回复i的撒回复i撒核辐射嗲花覅u </span>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
<script>
    document.querySelectorAll(".item").forEach((item,index)=>{
        item.addEventListener("mouseenter",function(e){
            item.children[1].children[0].play()
        })
        item.addEventListener("mouseleave",function(){
            item.children[1].children[0].load() 
        })
    })
</script>